const { openJson, saveJson } = require("../utils/fileSystem");

const SETTINGS_PATH = [__dirname, '..', 'config', 'settings.json'];

const settingsService = {
    load: () => openJson(...SETTINGS_PATH),

    save: (settings) => saveJson(settings, ...SETTINGS_PATH)
};

module.exports = settingsService;
